home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / apps / xconf / xconf.install < prev    next >
Text File  |  1994-08-01  |  1KB  |  56 lines

  1. #!/bin/sh
  2.  
  3. DIR=/usr/tmp/xconf
  4. if [ -d /usr/local/tac ]
  5. then
  6.    INSTALLDIR=/usr/local/tac
  7.    LINKDIR=/usr/local/bin
  8. else
  9.    INSTALLDIR=/usr/local/bin
  10. fi
  11.  
  12. VERS=`uname -r | cut -f1 -d.`
  13.  
  14. if [ $VERS -eq '3' ]
  15. then 
  16.    echo "copying 3.3 xconf executable"
  17.  
  18.    if [ -d /usr/local/tac ]
  19.    then 
  20.       /usr/bsd/rcp guest@camelot.csd:$DIR/xconf.3x $INSTALLDIR/xconf
  21.       ln -s $INSTALLDIR/xconf $LINKDIR/xconf
  22.    else
  23.       /usr/bsd/rcp guest@camelot.csd:$DIR/xconf.3x $INSTALLDIR/xconf
  24.    fi
  25. fi
  26.  
  27. if [ $VERS -eq '4' ]
  28. then
  29.    echo "copying 4.0 xconf executable"
  30.  
  31.    if [ -d /usr/local/tac ]
  32.    then
  33.       /usr/bsd/rcp guest@camelot.csd:$DIR/xconf.4x $INSTALLDIR/xconf
  34.       ln -s $INSTALLDIR/xconf $LINKDIR/xconf
  35.    else
  36.       /usr/bsd/rcp guest@camelot.csd:$DIR/xconf.4x $INSTALLDIR/xconf
  37.    fi
  38. else
  39.     echo "copying 5.1 xconf executable"
  40.    if [ -d /usr/local/tac ]
  41.    then
  42.       /usr/bsd/rcp guest@camelot.csd:$DIR/xconf.5x $INSTALLDIR/xconf
  43.       ln -s $INSTALLDIR/xconf $LINKDIR/xconf
  44.    else
  45.       /usr/bsd/rcp guest@camelot.csd:$DIR/xconf.5x $INSTALLDIR/xconf
  46.    fi
  47. fi
  48.  
  49. echo "copying resource file"
  50. /usr/bsd/rcp guest@camelot.csd:$DIR/XConf /usr/lib/X11/app-defaults/XConf
  51.  
  52. echo "copying man page..."
  53. /usr/bsd/rcp guest@camelot.csd:$DIR/xconf.man /usr/catman/local/cat1/xconf.z
  54.  
  55. echo "done.\n"
  56.